<!--
 * @Author: wuchao66_Git 2803670835@qq.com
 * @Date: 2023-10-27 17:00:20
 * @LastEditors: wuchao66_Git 2803670835@qq.com
 * @LastEditTime: 2023-10-27 20:43:35
 * @FilePath: \t162vue\src\components\jubu1.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->

<template>
  <div>
    我是局部组件
    <ul>
        <li @click="fashe(index)" v-for="(xjj,index) in names" :key="index">
        {{xjj}}</li>
    </ul>
  </div>
</template>

<script>
export default {
    props:{
      names:{
        type:Array,
        default:[]
      }
    },methods:{
      fashe(index){
          this.$emit('jieshou',index);
      }
    }
}
</script>

<style>

</style>